<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        .button {
            padding: 15px 25px;
            font-size: 24px;
            text-align: center;
            cursor: pointer;
            outline: none;
            color: #fff;
            background-color: #04AA6D;
            border: none;
            border-radius: 15px;
            box-shadow: 0 9px #999;
        }

        .button:hover {
            background-color: #3e8e41
        }

        .button:active {
            background-color: #3e8e41;
            box-shadow: 0 5px #666;
            transform: translateY(4px);
        }
    </style>
</head>

<body>

    <h2>Animated Buttons - "Pressed Effect"</h2>

    <button class="button">Click Me</button>

    <pre>
        <h2>
            : active -> 当点击的时候触发:
            .button:active {
                background-color: #3e8e41;
                box-shadow: 0 5px #666;
                transform: translateY(4px);
            }
            

            重点:  
            重点:  
            重点:  
            
            box-shadow: 0 9px #999;
            变为
            box-shadow: 0 5px #666;
        </h2>
    </pre>

</body>

</html>